package com.amrit.basic;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Serializable;

public class MyClass implements Serializable {
	public static void main(String[] args) {
		try{
			MyClass mc1 = new MyClass1();
			System.out.println("main");
			FileReader fr = new FileReader("D:\\temp.java");
			BufferedReader br = new BufferedReader(fr);
			System.out.println(br.readLine());
			br.close();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (IOException e) {
			System.out.println("exception");
			System.out.println(e.getMessage());
		}finally {
			System.out.println("finally");
		}
	}
	void m1() {
		File f1 = new File("D://temp.java");
		f1.delete();
	}

}